Skip to content

Logviewer#169

Open
Juan Peralta (jperalta-ditto) wants to merge 10 commits intomainfrom
logviewer
Open

Logviewer#169
Juan Peralta (jperalta-ditto) wants to merge 10 commits intomainfrom
logviewer

Conversation

@jperalta-ditto

Add log viewer screens. This will allow endusers to actively go through current small peer log on device.

Updated ToolsViewerViewModel.kt with new ToolMenuItem
Updated DittoToolsViewer.kt to include log viewer as an option for tooling
Classes and view models related to the LogViewer and LogDetail screens.
@jperalta-ditto Juan Peralta (jperalta-ditto) requested review from a team and Jeremy (mrjeremystookey) and removed request for a team February 19, 2026 18:40
Increases padding on LogFileScreen and LogDetailsScreen for better spacing and alignment.
Adds an 8.dp spacer to improve layout in the LogFileScreen.
Adds a legend to display the colors for each log level. This provides users with a clear visual key for interpreting the log entries.

Additionally, this commit includes the following UI enhancements:
*   Replaces hardcoded text with string resources for better localization and maintainability.
*   Refreshes the color palette for log levels to improve readability.
*   Removes the experimental `OptIn` for Material3 components.
Adds a legend to display the colors for each log level. This provides users with a clear visual key for interpreting the log entries.

Additionally, this commit includes the following UI enhancements:
*   Replaces hardcoded text with string resources for better localization and maintainability.
*   Refreshes the color palette for log levels to improve readability.
*   Removes the experimental `OptIn` for Material3 components.
Adds a floating action button to the log file screen that appears when the user has scrolled down. Tapping this button scrolls the list back to the top.
Update Utils to avoid using context
minor cleanup.
espresso-core = { group = "androidx.test.espresso", name = "espresso-core", version.ref = "espresso-core" }
material = { group = "com.google.android.material", name = "material", version.ref = "material" }
androidx-webkit = { group = "androidx.webkit", name = "webkit", version.ref = "webkit" }
moshi-kotlin = { module = "com.squareup.moshi:moshi-kotlin", version.ref = "moshiKotlin" }

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why moshi instead of kotlinx serialization? The latter is more commonly used and likely to already be used by a lot of Android apps.

Comment on lines +372 to +374
<img src="/Img/log_details.png" alt="Log Details" style="width: 30%; min-width: 250px; max-width: 300px;">
<img src="/Img/log_viewer.png" alt="Log Viewer" style="width: 30%; min-width: 250px; max-width: 300px;">
<img src="/Img/log_tailing.png" alt="Log Tails" style="width: 30%; min-width: 250px; max-width: 300px;">

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: the folder name Img is not a full word and also starts with a capital which looks like lmg in github's file listing. To avoid ambiguity, a name like images is more clear.

Image

Copy link
Member

@phatblat Ben Chatelain (phatblat) left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great idea!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants